<template>
  <div id="app" :class="currentClass">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'app',
  computed:{
    currentClass() {
      let currentPath = this.$route.fullPath
      if (currentPath.indexOf('sy') >= 0) {
        return 'app-sy'
      }
      return ''
    }
  },
  mounted() {
    console.log('mounted', this.$route.fullPath)
  }
}
</script>

<style>
@import './style/reset.css';
#app {
	position: fixed;
	width: 1920px;
	height: 1080px;
	font-family: 'Avenir', Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: center;
	color: #2c3e50;
	background-size: cover;
  transform-origin: top left;
}
.app-sy{
  background: url(./assets/img/sy-bg.png) no-repeat;
}
</style>
